import type { AppRouteModule } from '/@/router/types';

import { getParentLayout, LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const house: AppRouteModule = {
  path: '/stat',
  name: 'StatManager',
  component: LAYOUT,
  redirect: '/stat/stathouse',
  meta: {
    orderNo: 400,
    icon: 'ion:layers-outline',
    title: t('routes.demo.statmanager.root'),
    roles: ['Admin'],
    userGroups: ['Admin'],
    hideChildrenInMenu: true,
  },
  children: [
    {
      path: 'stathouse',
      name: 'stathouse',
      meta: {
        title: t('routes.demo.statmanager.houselist'),
        roles: ['Admin'],
        userGroups: ['Admin'],
      },
      component: () => import('/@/views/houseStat/Index.vue'),
    },
  ],
};

export default house;
